package org.martyn.danbodroid.gui;

import org.martyn.danbooru.DanbooruConnectSettings;

import android.content.Context;

public class PreferenceRowDanbooru extends PreferenceRowDouble
{
	private DanbooruConnectSettings danbooruConnectSettings = null;

	public PreferenceRowDanbooru(
			Context context,
			DanbooruConnectSettings danbooruConnectSettings)
	{
		super(context, "danbooru_preference");

		this.danbooruConnectSettings = danbooruConnectSettings;

		setTitle(danbooruConnectSettings.name);
		setSummary(danbooruConnectSettings.hostName);
	}

	public DanbooruConnectSettings getDanbooruConnectSettings()
	{
		return danbooruConnectSettings;
	}

	public void setDanbooruConnectSettings(
			DanbooruConnectSettings danbooruConnectSettings)
	{
		this.danbooruConnectSettings = danbooruConnectSettings;
	}
}
